package edu.yngsxy.dsstudyApi.core.config;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


@Component//使用Component注解，声明一个组件，被控制器依赖注入
@Data
@ToString
@ConfigurationProperties(prefix = "wx")//wx为配置文件中key的前缀

public class WxConfig {
    //@NotEmpty(message = "appid不能为空")
    private String appid;
    //@NotEmpty(message = "secret不能为空")
    private String secret;
    // @Min(value = 1024, message = "端口号不能小于1024")
    // @Max(value = 65535, message = "端口号不能大于65535")
    private List<String> token;
    private Map<String, String> miniprogram;

}
